<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html >
<head>
<meta charset="UTF-8">
<title><?php global $_G; if(isset($selfTitle)) echo $selfTitle;?></title>

<link rel="stylesheet" type="text/css" href="<?php echo MY_CDN;?>/css/bootstrap/bootstrap.edit.css" />
<link rel="stylesheet" type="text/css" href="<?php echo MY_CDN;?>/admin/css/admin.css" />
<script type="text/javascript" src="<?php echo MY_CDN;?>/js/jquery.1.8.0.min.js"></script>
<script type="text/javascript">
var Y = {
	'_CDN_' : '<?php echo MY_CDN; ?>',
	'_ROOT_' : '__ROOT__',
	'_APP_' : '__APP__',
	'_AID_' : '<?php if(isset($_G['adminId'])) echo $_G['adminId']; else echo '-1'; ?>'
};
</script>
<script type="text/javascript" src="<?php echo MY_CDN;?>/admin/js/common.js"></script>
<script type="text/javascript" src="<?php echo MY_CDN;?>/js/SysUtil.js"></script>

<style type="text/css" rel="stylesheet">
.page{clear:both;padding:15px 0;text-align:center}
.page a,.page a:visited{background-color:#F6F6F6;border:1px solid #D7D7D7;color:#333333;margin-right:6px;padding: 6px;line-height:15px;text-decoration:none}
.page a:hover {margin-right: 6px;border: 1px solid #9EC4D7;color: #033D5A;	background: #E4EFF5;padding: 6px;text-decoration:none}
.page a:active{margin-right: 6px;padding: 6px;line-height:15px}
.page span.current {FONT-WEIGHT: bold;	color: #000;margin-right: 6px;padding: 6px}
.page span.disabled{color: #333;margin-right: 6px;padding: 6px}
.page span.quantity{color: #333;margin-right: 6px;padding: 6px}
</style>
</head>
<body>
	<div class="y-container">
		<div class="y-pagetitle">
			列表
		</div>
		<div class="y-toolbar">
			<a href="javascript:;" class="y-btn"><span>添加</span></a>
		</div>
		<div class="y-list">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<th >编号</th>
					<th >昵称</th>
					<th >Email</th>
					<th >网址</th>
					<th >内容</th>
					<th >是否通过</th>
					<th >时间</th>
					<th >回复数</th>
					<th >操作</th>
				</tr>
<?php for($i=0,$c=count($data); $i<$c; $i++) { ?>
<tr >
	<td><?php echo ($data[$i]['id']); ?></td>
	<td><?php echo ($data[$i]['nickname']); ?></td>
	<td><?php echo ($data[$i]['email']); ?></td>
	<td><?php echo ($data[$i]['website']); ?></td>
	<td><?php echo y_processFace($data[$i]['content']);?></td>
	<td><?php echo $data[$i]['tongguo'] == '1' ? '通过' : '未通过'; ?></td>
	<td><?php echo date('Y-m-d H:i', $data[$i]['posttime']);?></td>
	<td><?php echo ($data[$i]['c']); ?></td>
	<td>
		<a href="javascript:;" onclick="viewReply(<?php echo ($data[$i]['id']); ?>)">查看回复</a>&nbsp;&nbsp;
		<a href="<?php echo U('Guestbook/delGuestbook', 'id='.$data[$i]['id']);?>" onclick="return confirm('确实要删除吗')">删除</a>
	</td>
</tr>
<?php } ?>			
			</table>
<div class="page">
<?php echo ($pageString); ?>
</div>
		</div>
		<div class="y-toolbar">
			<a href="javascript:;" class="y-btn"><span>添加</span></a>
		</div>
	</div>
<script type="text/javascript" src="<?php echo MY_CDN; ?>/admin/js/guestbook.js"></script>
</body>
</html>